package project.dade.cn.bst.base;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

public abstract class AbsFragmentActivity extends FragmentActivity {

	public abstract IPage getIpage();

	public abstract FragmentActivity getCurrentActivity();

	public abstract int getRootViewID();

	private PageManager pageManager;

	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		setContentView(getRootViewID());
		pageManager = new PageManager(getCurrentActivity(), getIpage());


		
	}

	public void switchPage(int index) {
		pageManager.switchPage(index);
	}

	@Override
	protected void onResume() {
		super.onResume();
	}

	@Override
	protected void onStart() {

		super.onStart();
	}

	@Override
	protected void onPause() {

		super.onPause();
	}

	@Override
	protected void onStop() {

		super.onStop();
	}

	@Override
	protected void onRestart() {

		super.onRestart();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}
}
